@using BootBlazor.Servers.Auth
@using BootBlazor.Servers.Helper
@using BootBlazor.Servers.Data
@using BootBlazor.Servers.Services
<MudDialog>
	<DialogContent>
		<div style="width:300px;">
			<div class="d-flex flex-column" style="max-height:300px;overflow:auto;">
				@foreach (var role in RoleList)
				{
					<MudCheckBox T="bool" @bind-Value="CheckedDic[role.Id]" Color="Color.Primary">@role.Name</MudCheckBox>
				}
			</div>
			<div class="mt-4 d-flex align-center">
				<MudSpacer />
				<MudButton Class="mt-2" StartIcon="@Icons.Material.Filled.Upload" FullWidth="false"
						   Variant="Variant.Text" Color="Color.Primary" OnClick="SubmitUserRole">@Loc["UserPage_SubmitText"]</MudButton>
			</div>
		</div>
	</DialogContent>
</MudDialog>
